package com.workmanager.service;

import com.workmanager.bean.JobTaskBean;
import com.workmanager.bean.WorkBean;
import com.workmanager.mapper.HomePageMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by haocongshun on 2016/9/24.
 */
@Service("homePageService")
public class HomePageService {
    @Resource(name="homePageMapper")
    private HomePageMapper homePageMapper;

    public HomePageMapper getHomePageMapper() {
        return homePageMapper;
    }

    public void setHomePageMapper(HomePageMapper homePageMapper) {
        this.homePageMapper = homePageMapper;
    }
    public List<JobTaskBean> getUnfinishedWork(String student_id){
        return homePageMapper.getUnfinishedWork(student_id);
    }
    public List<WorkBean> getFinishedWork(String teacher_id){
        return homePageMapper.getFinishedWork(teacher_id);
    }
}
